package cn.jiahua.hospital.service;

import cn.jiahua.hospital.dto.OrderDto;
import cn.jiahua.hospital.dto.UserDto;
import cn.jiahua.hospital.dto.YOrderDto;
import cn.jiahua.hospital.pojo.YOrder;

import java.util.List;
import java.util.Map;

import cn.jiahua.hospital.dto.Page;

/**
 * Created by shang-pc on 2015/11/7.
 */
public interface YOrderService {


    public YOrder getYOrderById(Integer id);

    public YOrderDto getYOrderById_hospital(Integer id, Integer hospitalId);

    public List<YOrder> getYOrderListByMap(Map<String, Object> param);

    public List<YOrderDto> getYOrderListByMap_hospital(Map<String, Object> param);

    public Integer getYOrderCountByMap_hospital(Map<String, Object> param);

    public Integer getYOrderCountByMap(Map<String, Object> param);

    public Integer qdtxAddYOrder(YOrder yOrder);

    public Integer qdtxModifyYOrder(YOrder yOrder);

    public Integer qdtxDeleteYOrderById(Integer id);

    public Integer qdtxBatchDeleteYOrder(String ids);

    public Page<YOrder> queryYOrderPageByMap(Map<String, Object> param, Integer pageNo, Integer pageSize);

    public Page<YOrder> queryYOrderPageByMapOfUser(Map<String, Object> param, Integer pageNo, Integer pageSize);

    public List<YOrder> getYOrderListByMapOfUser(Map<String, Object> param) throws Exception;

    public Integer getYOrderCountByMapOfUser(Map<String, Object> param);

    public YOrder getYOrderById_orderid(String orderid);

    public OrderDto getOrderInfoByOrderId(String orderId)throws Exception;

    public List<UserDto> getOrderByUserId(Integer userId)throws Exception;


}
